<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">

<f:view content-Type="text/html">
<body>
<center>
<h1>java learning center</h1>
<h2>Account Login</h2>

<h:form>
<h:panelGrid id="loginPanel" columns="3">

<h:outputText value="Username"/>
<h:inputText id="username" value="#{userBean.username}"  required="true"/>

<h:message for="username" style="color:red;font-size:13"/>

<h:outputText value="Password"/>

<h:inputSecret id="pword" value="#{userBean.password}" required="true"/>
<h:message for="pword" style="color:red;font-size:13"/>

<h:commandButton value="LoginNow" action="#{userBean.verifyuser}"/>

</h:panelGrid>
</h:form>

</center>
</body>
</f:view>
</html>